package goods

type Attribute struct {
	Id         int64
	Name       string
	CategoryId int
	Sort       byte

	Detail []AttributeDetail `gorm:"foreignKey:AttributeId"`
}

func (*Attribute) TableName() string {
	return "goods_attribute"
}

type AttributeDetail struct {
	Id          int64
	Name        string
	AttributeId int64
	GoodsId     int64
	Sort        byte
}

func (*AttributeDetail) TableName() string {
	return "goods_attribute_detail"
}
